/*! light-blue - v3.3.0 - 2016-03-08 */
$(function () {
    function a() {
        var a = $(".widget"), b = $("#news-widget"), c = $("#shares-widget"), d = $("#autoload-widget");
        a.on("fullscreen.widgster", function () {
            $(".widget, .sidebar, .logo, .page-header, .page-title").not($(this)).fadeTo(150, 0), $(".widget-container").sortable("option", "disabled", !0)
        }).on("restore.widgster closed.widgster", function () {
            $(".widget, .sidebar, .logo, .page-header, .page-title").not($(this)).fadeTo(150, 1), $(".widget-container").sortable("option", "disabled", !1)
        }), b.on("load.widgster", function () {
            $(this).find('[data-widgster="load"] > i').addClass("fa-spin")
        }).on("loaded.widgster", function () {
            $(this).find('[data-widgster="load"] > i').removeClass("fa-spin")
        }), b.widgster({
            showLoader: !1, closePrompt: function (a) {
                $("#news-close-modal").modal("show"), $("#news-widget-remove").on("click", function () {
                    $("#news-close-modal").on("hidden.bs.modal", a).modal("hide")
                })
            }
        }), c.widgster({loaderTemplate: '<div class="loader animated fadeIn">   <span class="spinner"><i class="fa fa-spinner fa-spin"></i></span></div>'}), d.on("load.widgster", function () {
            $(this).find(".fa-spinner").addClass("fa-spin in")
        }).on("loaded.widgster", function () {
            $(this).find(".fa-spinner").removeClass("fa-spin in")
        }).on("load.widgster fullscreen.widgster restore.widgster", function () {
            $(this).find(".dropdown.open > .dropdown-toggle").dropdown("toggle")
        }), a.widgster(), $(".widget-controls > a").tooltip({placement: "bottom"})
    }
    a();
});